@import '@/uni.scss';

.container {
	width: 100%;
	min-height: 100%;
	padding-bottom: calc(136rpx + env(safe-area-inset-bottom));
	background: $uni-bg-color;
	display: flex;
	flex-direction: column;
	align-items: center;
	.thumb {
		width: 100%;
		background: #fff;
	}
	.highlight {
		padding: 20rpx 0;
		width: 100%;
		background: $xxf-red;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		.price {
			padding-left: 30rpx;
			display: flex;
			flex-direction: column;
			> view {
				display: flex;
				flex-direction: row;
				align-items: baseline;
				> text {
					font-weight: 300;
					font-size: 24rpx;
					color: #fff;
				}
				> rich-text {
					font-weight: 400;
					font-size: 26rpx;
					color: #fff;
				}
			}
		}

		.label {
			padding-right: 30rpx;
			display: flex;
			flex-direction: column;
			> view {
				display: flex;
				flex-direction: row;
				justify-content: flex-end;
				align-items: baseline;
				> text {
					font-weight: 300;
					font-size: 24rpx;
					color: #fff;
				}
			}
			> view:nth-child(1) {
				display: flex;
				flex-direction: row;
				justify-content: flex-end;
				align-items: baseline;
				> text {
					font-weight: bold;
					font-size: 36rpx;
					color: #fff;
				}
			}
			> view:nth-child(2) {
				display: flex;
				flex-direction: row;
				align-items: baseline;
				> text:nth-child(2n) {
					padding: 4rpx 8rpx;
					font-weight: bold;
				}
				> text:nth-child(2n + 1) {
					padding: 4rpx 8rpx;
					width: 30rpx;
					background: #000;
					border-radius: 4rpx;
					text-align: center;
				}
			}
		}
	}
	.proTitle {
		padding: 10rpx 30rpx;
		width: calc(100% - 60rpx);
		> text {
			font-weight: bold;
			font-size: 32rpx;
			color: $uni-main-color;
		}
	}
	.spu {
		padding: 10rpx 30rpx;
		width: calc(100% - 60rpx);
		display: flex;
		flex-direction: column;
		.spuTitle {
			margin-top: 10rpx;
			padding: 16rpx 0;
			font-weight: 400;
			font-size: 28rpx;
			color: $uni-main-color;
		}
		.spuItem {
			margin: 10rpx;
			padding: 8rpx 16rpx;
			border-radius: 30rpx;
			width: fit-content;
			background: $uni-bg-color;
			display: flex;
			flex-direction: row;
			> text,
			rich-text {
				font-weight: 400;
				font-size: 28rpx;
				color: $uni-main-color;
			}
		}
		.activeItem {
			background: $uni-primary;
			> text,
			rich-text {
				color: #fff;
			}
		}
	}
	.spuNum {
		padding: 10rpx 30rpx;
		width: calc(100% - 60rpx);
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		.spuTitle {
			padding: 16rpx 0;
			font-weight: 400;
			font-size: 28rpx;
			color: $uni-main-color;
		}
		.num {
			display: flex;
			flex-direction: row;
			align-items: center;
			> uni-icons:first-child {
				padding-right: 10rpx;
			}
			> uni-icons:last-child {
				padding-left: 10rpx;
			}
			> text {
				padding: 10rpx;
				width: 80rpx;
				font-weight: 400;
				font-size: 32rpx;
				color: $uni-main-color;
				text-align: center;
				border: 2rpx solid $uni-extra-color;
				border-radius: 4rpx;
			}
		}
	}
	.spuPostage {
		padding: 10rpx 30rpx;
		width: calc(100% - 60rpx);
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		.spuTitle {
			padding: 16rpx 0;
			font-weight: 400;
			font-size: 28rpx;
			color: $uni-main-color;
		}
		.postage {
			display: flex;
			flex-direction: row;
			align-items: center;
			> text {
				font-weight: 400;
				font-size: 32rpx;
				color: $uni-main-color;
			}
		}
	}
	.spuSecurity {
		padding: 10rpx 30rpx;
		width: calc(100% - 60rpx);
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		.spuTitle {
			padding: 16rpx 0;
			font-weight: 400;
			font-size: 28rpx;
			color: $uni-main-color;
		}
		.security {
			display: flex;
			flex-direction: row;
			align-items: center;
			> text {
				padding-left: 10rpx;
				font-weight: 400;
				font-size: 32rpx;
				color: $uni-main-color;
			}
		}
	}
	.details {
		width: 100%;
		display: flex;
		flex-direction: column;
		.detailTitle {
			padding: 16rpx 30rpx;
			font-weight: 400;
			font-size: 28rpx;
			color: $uni-main-color;
		}
		.detailImg {
			width: 100%;
			display: flex;
			flex-direction: column;
			> image {
				width: 100%;
			}
		}
	}
	.fixBottom {
		padding-bottom: env(safe-area-inset-bottom);
		width: 100%;
		height: 136rpx;
		background: #fff;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		position: fixed;
		left: 0;
		bottom: 0;
		.fbLeft {
			padding: 30rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			> text {
				font-weight: 400;
				color: $uni-base-color;
				font-size: 24rpx;
			}
		}
		.fbRight {
			padding: 20rpx;
			display: flex;
			flex-direction: row;
			.cartBtn,
			.bookingBtn {
				width: 198rpx;
				height: 76rpx;
				display: flex;
				flex-direction: row;
				justify-content: center;
				align-items: center;
				> text {
					font-weight: 400;
					color: #fff;
				}
			}
			.cartBtn {
				background: $uni-warning;
				border-top-left-radius: 16rpx;
				border-bottom-left-radius: 16rpx;
				> text {
					font-size: 28rpx;
				}
			}
			.bookingBtn {
				background: $xxf-red;
				border-top-right-radius: 16rpx;
				border-bottom-right-radius: 16rpx;
				> text {
					font-size: 32rpx;
				}
			}
		}
	}
}
